package com.ali.memory;

import java.nio.ByteBuffer;
import java.util.ArrayList;
import java.util.List;

public class TestGC {
	public static void main(String[] args) throws Exception {
		List<ByteBuffer> a = new ArrayList();
		for (int i = 0;; i++) {
			ByteBuffer bb1 = ByteBuffer.allocate(1024 * 1);
			if (i % 100 == 0)
				a.add(bb1);
			Thread.sleep(1);
		}
	}
}
